#ifndef MYGL_EXT_H
#define MYGL_EXT_H


#include "mygl.h"
#include "GLTexture.h"
#include "GLFont.h"


void glEnableTexture(const GLTexture* tex);
void glDisableTexture();

void glDrawImage(const GLTexture* texture, const rectf& destRect, const Color& color = Color::White);
void glDrawText(const GLFont* fnt, float x, float y, const String& str, const Color& c = Color::White);

void glRenderImage(const GLTexture* tex, const rectf& dst, const rectf& src);
void glRenderSprite(const GLTexture* tex, float w, float h,
                    bool has_alpha = true,
                    bool back_cull = true,
                    bool depth_test = true);

#endif // MYGL_EXT_H
